<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>New Web Project</title>
		
		<script>
			$(function(){
				
								
				$("#f3").click(function(){
					var mobikey = $("#mobikey_s").val();
					var sessionid = $("#sessionid_s").val();
					var condition = $("#f1").val();
					var conditioncode = $("#f2").val();
					var action = "search";
					var myadta = "mobikey="+mobikey+"&sessionid="+sessionid+"&condition="+condition+"&conditioncode="+conditioncode+"&action="+action;
					//alert(myadta);
					$.ajax({
							url:"<?php echo base_url(); ?>sx_friend/",
							data:myadta,
							type:"POST",
							dataType: 'html',
							success:function(i){
							alert(i);
						}
					});
					
				});
			});
		</script>
	</head>
	<body>
		<h1>好友搜索</h1>
<input type="text" value="<?=$key?>" name="mobikey" id="mobikey_s"  readonly="readonly"/> <input type="text" value="<?=$sess?>" name="sessionid"  id="sessionid_s"  readonly="readonly" />
<select id="f1" name="condition">
	<option  value="">请选择搜索方式</option>
	<option value="0">登录名</option>
	<option value="1">城市</option>
	<option value="2">昵称</option>
</select>
<input type="text"  id="f2" name="conditioncode" />
<input type="button"  id="f3" value="提交" />

	</body>
</html>
